package com.atguigu.gmall.item.client.feign;

import com.atguigu.gmall.item.client.feign.fallback.ItemFeignClientFallBack;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * @author wk
 * @create 2021-08-30 18:56
 * 商品详情页对外接口
 */
@FeignClient(value = "service-item", fallback = ItemFeignClientFallBack.class)
public interface ItemFeignClient {
    @GetMapping("/api/item/getItem/{skuId}")
    @ApiOperation("获取页面详情数据")
    Map getItem(@PathVariable Long skuId);
}
